<template>
  <div class="top">
      <div class="child">当前用户:  {{userName}}</div>

  </div>
</template>

<script>
export default {
  name: 'HelloWorld',
  data () {
    return {
      msg: 'mybatis-plugs',
      userName:'wwd'
    }
  }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
  .top{
    height: 50px;
    width:99%;
    margin-left: 0;
    background: rosybrown;
    position: fixed;
    top: 0;
    margin-bottom: 5px;

  }
  .child {
    width: 150px;
    height: 50px;
    float: right;
    margin-top: 10px;


  }

</style>
